package org.jseda.util;

/**
 * Timer is a utility task to make the job of timing things easier.
 * The timer is started at construction.
 * @author "John McNair" <john@mcnair.org>
 */
public class Timer
{
  public long _startTime = System.currentTimeMillis();

  /**
   * Get the number of milliseconds since the timer was last started.
   * @return the number of milliseconds since the last timer reset.
   */
  public long elapsedTimeMillis()
  {
    return System.currentTimeMillis() - _startTime;
  }
}
